package com.sundi.ecgeneralize.mapper;

import com.sundi.ecgeneralize.dto.AdDto;
import com.sundi.ecgeneralize.entity.EcAd;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 广告表 Mapper 接口
 * </p>
 *
 * @author Mht
 * @since 2020-03-12
 */
public interface EcAdMapper extends BaseMapper<EcAd> {
    List<EcAd> selectAdList(AdDto adDto);

    void updAndDel(Integer id);

    EcAd getAd(@Param("id") Integer id);
}
